<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
       
        <style type="text/css">  
            .blue{
                background: #D0E5E5;
            }
            .white{
                background: #E3EDED;
            }
        </style>

    </head>



    <script type="text/javascript">
        $j(document).ready(function(){
            initThickBox('.thickbox');

        });
    </script>
    <body>
        <f:view>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form >
                <h:inputHidden value="#{T950Bean.pt950}"/>
                <div style="width: 80%;margin-left: 10%;margin-bottom: 3%;float: left;">    
                    <div class="headerdivtable" style="background: #428492;">
                        <div class="itemheaderdivtable_center" style="width: 3%;">
                            <h:outputText value="ĐỢT"/>
                        </div>
                        <div class="itemheaderdivtable_center" style="width: 6%;">
                            <h:outputText value="CHỨC NĂNG" />
                        </div>
                        <div class="itemheaderdivtable_center" style="width: 6%;">
                            <h:outputText value="XÉT DUYỆT"/>
                        </div>
                        <div class="itemheaderdivtable_center" style="width: 5%;">
                            <h:outputText value="PRINT"/>
                        </div>
                        <div class="itemheaderdivtable_left" style="width: 15%;">
                            <h:outputText value="HỌ TÊN"/>
                        </div>
                        <div class="itemheaderdivtable_left" style="width: 8%;">
                            <h:outputText value="CODE TOUR"/>
                        </div>
                        <div class="itemheaderdivtable_left" style="width: 15%;">
                            <h:outputText value="MỤC ĐÍCH"/>
                        </div>
                        <div class="itemheaderdivtable_center" style="width: 5%;">
                            <h:outputText value="TIỀN TỆ" />
                        </div>
                        <div  class="itemheaderdivtable_left" style="width: 10%;">
                            <h:outputText value="ĐÃ THU" />
                        </div>
                        <div class="itemheaderdivtable_left" style="width:15%;">
                            <h:outputText  value="NOTE"/>
                        </div>
                        <div class="itemheaderdivtable_left" style="width:6%;">
                            <h:outputText  value="NGÀY LẬP"/>
                        </div>
                        <%--   <div class="itemheaderdivtable_left" style="width: 6%;">
                               <h:outputText value="KIỂM TRA"/>
                           </div>
                           <div class="itemheaderdivtable_left" style="width: 6%;">
                               <h:outputText value="XÁC NHẬN"/>
                           </div>
                           <div class="itemheaderdivtable_left" style="width: 8%;">
                               <h:outputText value="NGƯỜI LẬP"/>
                           </div> --%>
                    </div>

                    <div  style="float: left;width: 100%;">
                        <a4j:repeat  value="#{T950Bean.listT950CNchild}" var="item" rowKeyVar="index">    
                            <div class="headerdivtable_bootom <h:outputText rendered="#{index%2 !=0}"  value="blue"/>">
                                <div class="itemheaderdivtable_center " style="width: 3%;color:#0055A6;">
                                    <h:outputText value="#{index+1}" >
                                        <f:convertNumber  pattern="##000"></f:convertNumber>
                                    </h:outputText>
                                </div>
                                <div class="itemheaderdivtable_center" style="width: 6%;">
                                    <h:outputLink  rendered="#{item.ht == null}"  value="financialAccountInput.jsp?action=edit&pt950=#{item.pt950}&height=282px&width=345px" styleClass="fancybox">
                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                    </h:outputLink>
                                    <h:outputLink  value="deleteFinancial.jsp?action=delete&pt950=#{item.pt950}&height=282px&width=345px" styleClass="fancybox ">
                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                    </h:outputLink>   
                                </div>
                                <div class="itemheaderdivtable_center" style="width: 6%;">
                                    <h:outputLink  value="confirm.jsp?pt950=#{item.pt950}&table=appro&page=tk.jsp&height=150px&width=300px" styleClass="fancybox" >
                                        <img src="../images/tick_circle.png" alt="Xác nhận" title="Xác nhận" />                                               
                                    </h:outputLink>
                                    <h:outputLink   value="confirm.jsp?pt950=#{item.pt950}&table=flau&page=tk.jsp&height=150px&width=300px" styleClass="fancybox" >
                                        <img  src="../images/check_false.png" alt="Xác nhận"  title="Xác nhận" />                                               
                                    </h:outputLink>
                                </div>
                                <div class="itemheaderdivtable_center" style="width: 5%;">
                                    <h:outputLink   value="documentView_infanial.jsp?action=getinfomationEmp&pt950=#{item.pt950}">
                                        <img  src="../images/docs_icon.png" height="15px" width="15px" title="Xem phiếu"/> 
                                    </h:outputLink>
                                </div>
                                <div class="itemheaderdivtable_left " style="width: 15%;">
                                    <h:outputText value="#{item.hoten}"/>
                                </div>
                                <div class="itemheaderdivtable_left " style="width: 8%;">
                                    <h:outputText value="#{item.tv957}"/>
                                </div>
                                <div class="itemheaderdivtable_left " style="width: 15%;">
                                    <h:outputText value="#{item.tv001}"/>
                                </div>
                                <div class="itemheaderdivtable_center " style="width: 5%;">
                                    <h:outputText value="#{item.tv952}"/> 
                                </div>
                              
                                <div class="itemheaderdivtable_left " style="width:10%;">
                                    <h:outputText style="color:red;font-weight:bold;" value="#{item.tn951}"/>
                                </div>
                               
                                <div class="itemheaderdivtable_left " style="width:15%;">
                                    <h:outputText  value="Ghi chu"/>
                                </div>
                                <div class="itemheaderdivtable_left " style="width:6%;">
                                    <h:outputText  value="#{item.td953}"><f:convertDateTime pattern="dd/MM/yyyy"/></h:outputText>
                                    </div>
                                <%--<div class="itemheaderdivtable_left " style="width:6%;">
                                    <h:outputText  value="&nbsp" escape="false"/>
                                </div>
                                <div class="itemheaderdivtable_left " style="width:6%;">
                                    <h:outputText  value="&nbsp" escape="false"/>
                                </div>
                                <div class="itemheaderdivtable_left " style="width:8%;">
                                    <h:outputText value="#{item.tl999}"/>
                                </div> --%>
                            </div>
                            <div class="showitemHistory">

                            </div>
                        </a4j:repeat>
                    </div>
                </div>



            </a4j:form>
        </f:view>
    </body>
</html>
